﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_QuanLy : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, System.EventArgs e)
    {
        int Logged = 0;
        string Username = "";

        if (Session["Logged"] != null)
        {
            Logged = (int)Session["Logged"];
        }
        if (Session["Username"] != null)
        {
            Username = (string)Session["Username"];
        }

        if (Logged != 2 | string.IsNullOrEmpty(Username))
        {
            Response.Redirect("Login.aspx");
        }
    }
    protected void thoatdangnhap_Click(object sender, System.EventArgs e)
    {
        Session.Timeout = 1;
        Session.RemoveAll();
        Response.Redirect("Login.aspx");
    }

    protected void trangchu_Click(object sender, System.EventArgs e)
    {
        Response.Redirect("../Default.aspx");
    }
}
